home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 …ember: Reference Library / Dev.CD Dec 96 RL / Dev.CD Dec 96 RL.toast / Technical Documentation / Macintosh Technical Notes / technotes / ic / launchwithdoc2.hqx / LaunchWithDoc2 / LaunchWithDoc 2 README next >
Encoding:
Text File  |  1994-03-28  |  1.2 KB  |  36 lines

  1. /*
  2.  *   LaunchWithDoc v 2
  3.  *
  4.  *   Greg Robbins  August 1993
  5.  *
  6.  *   Document-launching sample program
  7.  *   Loosely based on C.K. Haun's LaunchWithDoc
  8.  *
  9.  *   This snippet includes these useful routines:
  10.  *
  11.  *      OpenSpecifiedDocument
  12.  *        finds the creator application for a document, whether or not
  13.  *        the app is running, launches the app if necessary, and sends
  14.  *        the Apple Event necessary to get the app to open the document
  15.  *
  16.  *      FindApplicationFromDocument
  17.  *        searches the mounted volumes for the application which
  18.  *        created a document
  19.  *
  20.  *      LaunchApplicationWithDocument
  21.  *        launches an application which is not running and passes it
  22.  *        the OpenDocuments event as part of the launch parameters
  23.  *
  24.  *      SendOpenDocumentEventToProcess
  25.  *        sends an OpenDocuments Apple event to a running program
  26.  *
  27.  *  Remember that a target application need not be Apple event aware
  28.  *  in order for the OpenDocuments event to succeed (the System will
  29.  *  pull "puppet strings", simulating the events necessary to make the
  30.  *  target app open the document)
  31.  *
  32.  *  However, LaunchWithDoc must be high level event aware (as set in the
  33.  *  SIZE resource) in order to send Apple events using AESend
  34.  *
  35.  */
  36.